#include "stdafx.h"
#include <assert.h>

#include "RenderSystem.h"
#include "Renderer.h"

CRenderSystem::CRenderSystem( ) :
	m_Renderer( NULL )
{
	m_Renderer = new CRenderer( );
}

CRenderSystem::~CRenderSystem( )
{
	delete m_Renderer;
}

void CRenderSystem::Update( )
{
	assert( m_Renderer );
	m_Renderer->PreRender( );
	m_Renderer->Render( );
	m_Renderer->PostRender( );
}

